package com.ruoyi.rescheduling.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.rescheduling.mapper.ReschedulingganttMapper;
import com.ruoyi.rescheduling.domain.Reschedulinggantt;
import com.ruoyi.rescheduling.service.IReschedulingganttService;

/**
 * 重调度方案Service业务层处理
 * 
 * @author wangming
 * @date 2024-01-27
 */
@Service
public class ReschedulingganttServiceImpl implements IReschedulingganttService 
{
    @Autowired
    private ReschedulingganttMapper reschedulingganttMapper;

    /**
     * 查询重调度方案
     * 
     * @param waferlotid 重调度方案主键
     * @return 重调度方案
     */
    @Override
    public Reschedulinggantt selectReschedulingganttByWaferlotid(Long waferlotid)
    {
        return reschedulingganttMapper.selectReschedulingganttByWaferlotid(waferlotid);
    }

    /**
     * 查询重调度方案列表
     * 
     * @param reschedulinggantt 重调度方案
     * @return 重调度方案
     */
    @Override
    public List<Reschedulinggantt> selectReschedulingganttList(Reschedulinggantt reschedulinggantt)
    {
        return reschedulingganttMapper.selectReschedulingganttList(reschedulinggantt);
    }

    /**
     * 新增重调度方案
     * 
     * @param reschedulinggantt 重调度方案
     * @return 结果
     */
    @Override
    public int insertReschedulinggantt(Reschedulinggantt reschedulinggantt)
    {
        return reschedulingganttMapper.insertReschedulinggantt(reschedulinggantt);
    }

    /**
     * 修改重调度方案
     * 
     * @param reschedulinggantt 重调度方案
     * @return 结果
     */
    @Override
    public int updateReschedulinggantt(Reschedulinggantt reschedulinggantt)
    {
        return reschedulingganttMapper.updateReschedulinggantt(reschedulinggantt);
    }

    /**
     * 批量删除重调度方案
     * 
     * @param waferlotids 需要删除的重调度方案主键
     * @return 结果
     */
    @Override
    public int deleteReschedulingganttByWaferlotids(Long[] waferlotids)
    {
        return reschedulingganttMapper.deleteReschedulingganttByWaferlotids(waferlotids);
    }

    /**
     * 删除重调度方案信息
     * 
     * @param waferlotid 重调度方案主键
     * @return 结果
     */
    @Override
    public int deleteReschedulingganttByWaferlotid(Long waferlotid)
    {
        return reschedulingganttMapper.deleteReschedulingganttByWaferlotid(waferlotid);
    }
}
